import request from '@/utils/request1'
// 邀请有你基本信息
export function basicInfo(query) {
    return request({
        url: 'admin/ma/base',
        method: 'post',
        data: query
    })
}
// 分享配置
export function handleShare(query) {
    return request({
        url: 'admin/ma/share_conf',
        method: 'post',
        data: query
    })
}
// 活动列表
export function getList(query) {
    return request({
        url: 'admin/ma/list',
        method: 'post',
        data: query
    })
}
// 列表switch活动开关
export function getSwitch(query) {
    return request({
        url: 'admin/ma/onsale',
        method: 'post',
        data: query
    })
}
// 获取弹窗备注
export function getRemark(query) {
    return request({
        url: 'admin/ma/remark',
        method: 'post',
        data: query
    })
}
// 创建活动编辑邀请人或被邀请人奖品配置
export function awardSet(query) {
    return request({
        url: 'admin/ma/invite_conf',
        method: 'post',
        data: query
    })
}
// 弹窗优惠券
export function coupons(query) {
    return request({
        url: 'admin/ma/ticket_list',
        method: 'post',
        data: query
    })
}
// 提交邀请或被邀请奖品配置
export function submitCoupons(query) {
    return request({
        url: 'admin/ma/invite_conf',
        method: 'post',
        data: query
    })
}
// 老用户奖品配置提交
export function UserCoupons(query) {
    return request({
        url: 'admin/ma/old_user',
        method: 'post',
        data: query
    })
}
// 活动详情
export function getInfo(query) {
    return request({
        url: 'admin/ma/info',
        method: 'post',
        data: query
    })
}
// 邀请有礼记录
export function inviteRecord(query) {
    return request({
        url: 'admin/invite/recordList',
        method: 'post',
        data: query
    })
}
// 邀请导出
export function inviteExport(query) {
    return request({
        url: 'admin/invite/recordExport',
        method: 'post',
        data: query,
        responseType: 'blob'
    })
}
// 奖品记录
export function priceList(query) {
  return request({
      url: 'admin/invite/price_list',
      method: 'get',
      params: query
  })
}